package com.hellomvp.client;

import com.hellomvp.client.ui.GoodbyeRightPanel;
import com.hellomvp.client.ui.HelloLeftPanel;
import com.hellomvp.client.ui.HelloRightPanel;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.place.shared.PlaceController;

public class ClientFactoryImpl implements ClientFactory {
	private static final EventBus eventBus = new SimpleEventBus();
	private static final PlaceController placeController = new PlaceController(eventBus);
	private static final HelloLeftPanel helloLeftPanel = new HelloLeftPanel();
	private static final HelloRightPanel helloRightPanel = new HelloRightPanel();
	private static final GoodbyeRightPanel goodbyeRightPanel = new GoodbyeRightPanel();
	
	@Override
	public EventBus getEventBus() {
		return eventBus;
	}

	@Override
	public PlaceController getPlaceController() {
		return placeController;
	}

	@Override
	public HelloRightPanel getHelloRightPanel() {
		return helloRightPanel;
	}

	@Override
	public HelloLeftPanel getHelloLeftPanel() {
		return helloLeftPanel;
	}

	@Override
	public GoodbyeRightPanel getGoodbyeRightPanel() {
		return goodbyeRightPanel;
	}

}
